package com.orion.app.domain.entity;

import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.plural.RooPlural;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
@RooJpaEntity(sequenceName = "imp_num_seq")
@RooPlural("ImportantNumbers")
public class ImportantNumber {

    @NotNull
    @ManyToOne
    private NumberType numberType;

    @Size(max = 100)
    private String contactNumber;

    @Size(max = 200)
    private String notes;
}
